<!DOCTYPE html>
<html lang="">
<head>
    <meta charset="UTF-8">
    <title>SSO登录</title>
</head>
<body>
<h1>单点登录中心</h1>
{{ if .error }}
<p style="color: red;">{{ .error }}</p>
{{ end }}
<form action="/login" method="post">
    <!-- 隐藏字段保存回调URL -->
    <input name="sp_callback_url" type="hidden" value="{{.spCallbackURL}}">
    <div>
        <label>用户名:</label>
        <label>
            <input name="username" required type="text">
        </label>
    </div>
    <div>
        <label>密码:</label>
        <label>
            <input name="password" required type="password">
        </label>
    </div>
    <button type="submit">登录</button>
</form>
</body>
</html>